<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ page import="java.util.List" %>
<%@ page import="javax.jdo.PersistenceManager" %>
<%@ page import="com.google.appengine.api.users.User" %>
<%@ page import="com.google.appengine.api.users.UserService" %>
<%@ page import="com.google.appengine.api.users.UserServiceFactory" %>
<%@ page import="tuSecure.Alert" %>
<%@ page import="tuSecure.PMF" %>

<html>
  <body>

<%
    PersistenceManager pm = PMF.get().getPersistenceManager();
    String query = "select from " + Alert.class.getName();
    List<Alert> alrts = (List<Alert>) pm.newQuery(query).execute();
    
    if (alrts.isEmpty()) 
    {

    } 
    else 
    {
	    for (Alert a : alrts) 
	    {
	 		pm.deletePersistent(a);
	 		pm.currentTransaction().commit();
	
	    }
        
    }
    pm.close();
%>


  </body>
</html>